package com.aspose.cells;

import java.util.ArrayList;

class zbcj extends ArrayList {
   private Worksheet a;

   public zbcj(Worksheet var1) {
      this.a = var1;
   }

   zbci a(int var1) {
      for(int var2 = 0; var2 < this.size(); ++var2) {
         zbci var3 = (zbci)this.get(var2);
         if ((var3.a() & 255) == var1) {
            return var3;
         }
      }

      return null;
   }

   byte a() {
      int var1 = 3;
      if (this.a.getPanes() != null) {
         var1 = this.a.b().a() & 255;
      }

      return (byte)var1;
   }

   void a(int var1, int var2, int var3, int var4, boolean var5) {
      byte var6 = this.a();

      for(int var7 = 0; var7 < this.size(); ++var7) {
         zbci var8 = (zbci)this.get(var7);
         if (var8.a() == var6) {
            var8.a(var1, var2, var3, var4, var5);
         }
      }

   }

   String b() {
      int var1 = this.a() & 255;
      int var2 = this.size();
      switch(var2) {
      case 0:
         return "A1";
      default:
         for(int var3 = 0; var3 < this.size(); ++var3) {
            zbci var4 = (zbci)this.get(var3);
            if ((var4.a() & 255) == var1) {
               return CellsHelper.cellIndexToName(var4.c(), var4.d());
            }
         }

         return "A1";
      }
   }

   void a(String var1) {
      byte var2 = 0;
      byte var3 = 0;
      int[] var5 = new int[]{var2};
      int[] var6 = new int[]{var3};
      CellsHelper.a(var1, var5, var6);
      int var10 = var5[0];
      int var11 = var6[0];
      int var7 = this.size();
      int var8 = this.a() & 255;
      zbci var4;
      switch(var7) {
      case 0:
         var4 = new zbci(var8);
         var4.a(var10, var11);
         com.aspose.cells.b.a.a.ze.a(this, (Object)var4);
         break;
      default:
         for(int var9 = 0; var9 < this.size(); ++var9) {
            var4 = (zbci)this.get(var9);
            if ((var4.a() & 255) == var8) {
               var4 = new zbci(var8);
               var4.a(var10, var11);
               this.set(var9, var4);
               break;
            }
         }
      }

   }
}
